cmake_minimum_required(VERSION 3.1.15)
project(OrbbecSDKTest)


# find Orbbec SDK
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/include/CMakeModules)
find_package(OrbbecSDK REQUIRED)
find_package(PCL REQUIRED)
find_package(OpenCV REQUIRED)

include_directories(
  include
  ${PCL_INCLUDE_DIRS}
  ${OPENCV_INCLUDE_DIRS}
)

link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

# link Orbbec SDK
add_executable(test test.cpp)
target_link_libraries(test OrbbecSDK::OrbbecSDK)


add_executable(read_ply read_ply.cpp)
target_link_libraries(read_ply ${PCL_LIBRARIES})


add_executable(align_depth align_depth.cpp)
target_link_libraries(align_depth OrbbecSDK::OrbbecSDK ${OpenCV_LIBS})

add_executable(color_record color_record.cpp)
target_link_libraries(color_record OrbbecSDK::OrbbecSDK ${OpenCV_LIBS} )